package com.homework05;

/*
请修改代码区的错误，使之能够正确输出如下内容:
Hello World
Hello World
Hello World
*/
public class work04 {
    public static void main(String[] args) {

        // 计算并输出两数之和
        sum(10, 20);

        // 打印3次Hello World
        printHelloWorld();
    }


    public static int sum(int a, int b) {
        int c = a + b;
        System.out.println(a+"和"+b+"的和为："+c);
        return c;
    }

    public static void printHelloWorld() {
        for (int i = 1; i <= 3; i++) {
            System.out.println("Hello World");
        }
    }
}
